package com.xinqi.modules.sys.textbook.commonn;

import com.xinqi.common.base.dto.utils.CommonFileUtils;

/**
 * @author linkai
 * @date 2023/3/24
 */
public interface CommonPathUtils {
    static int level(String filePath) {
        return CommonFileUtils.fileLevel(filePath);
    }

    static String path(String fileName) {
        return CommonFileUtils.filePath(fileName);
    }

    static String path(String fileName, String parentPath) {
        return CommonFileUtils.filePath(fileName, parentPath);
    }
}
